/*
 * @Author: SevDaisy十七散人 
 * @Date: 2020-07-04 08:44:22 
 * @Last Modified by: SevDaisy十七散人
 * @Last Modified time: 2020-07-04 08:45:38
 */
package zyy.model;

public class BeanMerchant {
  public static final String[] tableTitles = { "序号", "商家名", "商家星级", "平均消费", "总销量" };
  private int MID;

  private String mName;
  private double mStars;
  private double mCostAve;
  private double mCostCnt;

  private int AddrssID;

  public String getCell(int col) {
    switch (col) {
      case 0:
        return (this.MID + "");
      case 1:
        return this.mName;
      case 2:
        return (this.mStars + "");
      case 3:
        return (this.mCostAve + "");
      case 4:
        return (this.mCostCnt + "");
      default:
        return "";
    }
  }

  public int getMID() {
    return MID;
  }

  public void setMID(int mID) {
    MID = mID;
  }

  public String getmName() {
    return mName;
  }

  public void setmName(String mName) {
    this.mName = mName;
  }

  public double getmStars() {
    return mStars;
  }

  public void setmStars(double mStars) {
    this.mStars = mStars;
  }

  public double getmCostAve() {
    return mCostAve;
  }

  public void setmCostAve(double mCostAve) {
    this.mCostAve = mCostAve;
  }

  public double getmCostCnt() {
    return mCostCnt;
  }

  public void setmCostCnt(double mCostCnt) {
    this.mCostCnt = mCostCnt;
  }

  @Override
  public String toString() {
    return "BeanMerchant [MID=" + MID + ", mCostAve=" + mCostAve + ", mCostCnt=" + mCostCnt + ", mName=" + mName
        + ", mStars=" + mStars + "]";
  }

  public int getAddrssID() {
    return AddrssID;
  }

  public void setAddrssID(int addrssID) {
    AddrssID = addrssID;
  }
}